body {
    font-family: Arial, sans-serif;
    margin: 40px;
    background-color: #f5f5f5;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #3366cc;
    margin-bottom: 20px;
}

.messages {
    border: 1px solid #ddd;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: #fafafa;
    border-radius: 4px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-left: 4px solid #3366cc;
    border-radius: 4px;
}

.username {
    font-weight: bold;
    color: #3366cc;
}

.timestamp {
    color: #999;
    font-size: 0.8em;
    margin-right: 10px;
}

form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background: #3366cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    button:hover {
        background: #254e9e;
    }

p {
    text-align: center;
    margin-top: 20px;
}

a {
    color: #3366cc;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }
